﻿define(function (require, exports, module) {
    //p1 -> point: { X: 0, Y: 0 }
    //p2 -> position: { Left: 0, Top: 0, Right: 0, Bottom: 0 }
    exports.IsInRect = function (p1, p2) {
        return p2.Left <= p1.X && p1.X < p2.Right && p2.Top <= p1.Y && p1.Y <= p2.Bottom;
    };
});